﻿@model PeshoMVC.Models.UserProfileModel

@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "Account view";
}

<h2>@(User.Identity.Name)'s profile</h2>

<div class="form-horizontal">
    <hr />

    <table class="table">
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.Picture)
            </td>
            <td>
                <img src="@Url.Action("GetImage", "User", new { name = Model.UserName })" alt="Missing picture!" width="280px" />
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.UserName)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.UserName)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.FirstName)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.FirstName)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.LastName)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.LastName)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.Email)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.Email)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.Birthday)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.Birthday)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.Gender)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.Gender)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.HaveAPet)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.HaveAPet)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.PetName)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.PetName)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.PetGender)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.PetGender)
            </td>
        </tr>
        <tr>
            <td>
                <strong>@Html.DisplayNameFor(model => model.TestResult)</strong>
            </td>
            <td>
                @Html.DisplayFor(model => model.TestResult)
            </td>
        </tr>
    </table>
</div>
<p>
    @Html.ActionLink("Edit", "Edit", new { id = Model.UserId })
</p>

